package projectmanagerapp

class UserPageController {

   def beforeInterceptor = [action:this.&auth]
   
       
		def index() {
			
			}
	
    def auth() {
		def user = session["user"]
		
        if((!user) || ( !(user.role == "User") )) {
			  flash.message = "You must have User level access to use these features"
			 redirect(uri: "/")
            return false
        }
	
    }
}